Socket
Socket
Sign inDemoInstall

lodash.isnumber

Package Overview
Dependencies
0
Maintainers
3
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.isnumber


Version published
Weekly downloads
8.7M
decreased by-18.34%
Maintainers
3
Created
Weekly downloads
 

Package description

What is lodash.isnumber?

The lodash.isnumber package is a utility function that checks if a given value is classified as a number primitive or object. It is part of the Lodash library, which is a popular utility library for JavaScript.

What are lodash.isnumber's main functionalities?

Check if a value is a number

This feature allows you to check if a given value is a number. It returns true for number primitives and objects, including NaN, and false for non-number values.

const isNumber = require('lodash.isnumber');
console.log(isNumber(123)); // true
console.log(isNumber('123')); // false
console.log(isNumber(NaN)); // true

Other packages similar to lodash.isnumber

Readme

Source

lodash.isnumber v3.0.3

The lodash method _.isNumber exported as a Node.js module.

Installation

Using npm:

$ {sudo -H} npm i -g npm
$ npm i --save lodash.isnumber

In Node.js:

var isNumber = require('lodash.isnumber');

See the documentation or package source for more details.

Keywords

FAQs

Last updated on 03 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc